package com.github.admin.edu.security.jwt.server.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-29
 */
@Entity
@Table(name = "t_sys_wf_step", schema = "usr_bx", catalog = "")
public class TSysWfStep {
    private String id;
    private String name;
    private String spyj;
    private String spr;
    private String kssj;
    private String jssj;
    private String lcbh;
    private Integer lcid;
    private Integer step;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "spyj")
    public String getSpyj() {
        return spyj;
    }

    public void setSpyj(String spyj) {
        this.spyj = spyj;
    }

    @Basic
    @Column(name = "spr")
    public String getSpr() {
        return spr;
    }

    public void setSpr(String spr) {
        this.spr = spr;
    }

    @Basic
    @Column(name = "kssj")
    public String getKssj() {
        return kssj;
    }

    public void setKssj(String kssj) {
        this.kssj = kssj;
    }

    @Basic
    @Column(name = "jssj")
    public String getJssj() {
        return jssj;
    }

    public void setJssj(String jssj) {
        this.jssj = jssj;
    }

    @Basic
    @Column(name = "lcbh")
    public String getLcbh() {
        return lcbh;
    }

    public void setLcbh(String lcbh) {
        this.lcbh = lcbh;
    }

    @Basic
    @Column(name = "lcid")
    public Integer getLcid() {
        return lcid;
    }

    public void setLcid(Integer lcid) {
        this.lcid = lcid;
    }

    @Basic
    @Column(name = "step")
    public Integer getStep() {
        return step;
    }

    public void setStep(Integer step) {
        this.step = step;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TSysWfStep that = (TSysWfStep) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name) &&
                Objects.equals(spyj, that.spyj) &&
                Objects.equals(spr, that.spr) &&
                Objects.equals(kssj, that.kssj) &&
                Objects.equals(jssj, that.jssj) &&
                Objects.equals(lcbh, that.lcbh) &&
                Objects.equals(lcid, that.lcid) &&
                Objects.equals(step, that.step);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, spyj, spr, kssj, jssj, lcbh, lcid, step);
    }
}
